package com.mlnx.ui.pojo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;


@Data
@ApiModel("群组添加参数类")
public class GroupForm {

    @NotBlank(message = "群组名不能为空")
    @ApiModelProperty("群组名")
    private String name;

    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty("用户ID")
    private Integer userId;
}
